package cn.edu.scau.cmi.linjinyong.mybatis.domain;

import java.util.Set;

public class Teacher {

    private Long id;
    private String name;
    private String college;

    public Teacher() {
    }

    public Teacher(Long id, String name, String college) {
        this.id = id;
        this.name = name;
        this.college = college;
    }
    public void setToEmpty(){
        this.id = null;
        this.name = null;
        this.college = null;
    }
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCollege() {
        return college;
    }

    public void setCollege(String college) {
        this.college = college;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", college='" + college + '\'' +
                '}';
    }
}
